package scigest.metadata;



import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * Entry class to drive the metadata processing chain
 * 
 * @author Feiyi Wang
 *
 */

public class MetadataDriver {

	private static Logger logger = LoggerFactory.getLogger(MetadataDriver.class);
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
				
		logger.debug("Starting the chain ...");
		
		// create and configure beans
		ApplicationContext ctx =
		    new ClassPathXmlApplicationContext(new String[] {"chain-config.xml"});
		ChainRunner chainRunner = ctx.getBean("chainRunner", ChainRunner.class);
		chainRunner.runChain( "metadataChain" );
	}

}
